package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Address implements Serializable {
    private static final long serialVersionUID = 1L; //完成序列化操作
    @TableId(type = IdType.AUTO,value = "address_id")
    private Integer address_id;  //"地址id"
    @TableField(value = "user_id")
    private Integer user_id;  //"用户id"
    @TableField(value = "recipient_name")
    private String recipient_name;  //"收件人"
    @TableField(value = "phone")
    private String phone;  //"手机号
    @TableField(value = "detailed_address")
    private String detailed_address;  //"详细地址"
    @TableField(value = "is_default")
    private Integer is_default;  //"0-不是默认, 1-默认"
    @TableField(value = "address_status")
    private Integer address_status;  //"状态(0-禁用,1-正常)"
}
